package cn.bugstack.mcp.server.niuke.domain.model;


import cn.bugstack.mcp.server.niuke.types.utils.MarkDownConverter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ArticleFunctionRequest {

    @JsonProperty(required = true, value = "title")
    @JsonPropertyDescription("文章标题")
    private String title;

    @JsonProperty(required = true, value = "markdowncontent")
    @JsonPropertyDescription("文章内容")
    private String markdownContent;


    public String getHTMLContent(){
        return MarkDownConverter.convertToHtml(markdownContent);
    }
}
